package com.sun.vo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CUserHdphotoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int limitStart = -1;

    protected int limitEnd = -1;

    public CUserHdphotoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart=limitStart;
    }

    public int getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(int limitEnd) {
        this.limitEnd=limitEnd;
    }

    public int getLimitEnd() {
        return limitEnd;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andHpidIsNull() {
            addCriterion("HPID is null");
            return (Criteria) this;
        }

        public Criteria andHpidIsNotNull() {
            addCriterion("HPID is not null");
            return (Criteria) this;
        }

        public Criteria andHpidEqualTo(Integer value) {
            addCriterion("HPID =", value, "hpid");
            return (Criteria) this;
        }

        public Criteria andHpidNotEqualTo(Integer value) {
            addCriterion("HPID <>", value, "hpid");
            return (Criteria) this;
        }

        public Criteria andHpidGreaterThan(Integer value) {
            addCriterion("HPID >", value, "hpid");
            return (Criteria) this;
        }

        public Criteria andHpidGreaterThanOrEqualTo(Integer value) {
            addCriterion("HPID >=", value, "hpid");
            return (Criteria) this;
        }

        public Criteria andHpidLessThan(Integer value) {
            addCriterion("HPID <", value, "hpid");
            return (Criteria) this;
        }

        public Criteria andHpidLessThanOrEqualTo(Integer value) {
            addCriterion("HPID <=", value, "hpid");
            return (Criteria) this;
        }

        public Criteria andHpidIn(List<Integer> values) {
            addCriterion("HPID in", values, "hpid");
            return (Criteria) this;
        }

        public Criteria andHpidNotIn(List<Integer> values) {
            addCriterion("HPID not in", values, "hpid");
            return (Criteria) this;
        }

        public Criteria andHpidBetween(Integer value1, Integer value2) {
            addCriterion("HPID between", value1, value2, "hpid");
            return (Criteria) this;
        }

        public Criteria andHpidNotBetween(Integer value1, Integer value2) {
            addCriterion("HPID not between", value1, value2, "hpid");
            return (Criteria) this;
        }

        public Criteria andUidIsNull() {
            addCriterion("UID is null");
            return (Criteria) this;
        }

        public Criteria andUidIsNotNull() {
            addCriterion("UID is not null");
            return (Criteria) this;
        }

        public Criteria andUidEqualTo(String value) {
            addCriterion("UID =", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotEqualTo(String value) {
            addCriterion("UID <>", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThan(String value) {
            addCriterion("UID >", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidGreaterThanOrEqualTo(String value) {
            addCriterion("UID >=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThan(String value) {
            addCriterion("UID <", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLessThanOrEqualTo(String value) {
            addCriterion("UID <=", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidLike(String value) {
            addCriterion("UID like", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotLike(String value) {
            addCriterion("UID not like", value, "uid");
            return (Criteria) this;
        }

        public Criteria andUidIn(List<String> values) {
            addCriterion("UID in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotIn(List<String> values) {
            addCriterion("UID not in", values, "uid");
            return (Criteria) this;
        }

        public Criteria andUidBetween(String value1, String value2) {
            addCriterion("UID between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andUidNotBetween(String value1, String value2) {
            addCriterion("UID not between", value1, value2, "uid");
            return (Criteria) this;
        }

        public Criteria andLimgIsNull() {
            addCriterion("LIMG is null");
            return (Criteria) this;
        }

        public Criteria andLimgIsNotNull() {
            addCriterion("LIMG is not null");
            return (Criteria) this;
        }

        public Criteria andLimgEqualTo(String value) {
            addCriterion("LIMG =", value, "limg");
            return (Criteria) this;
        }

        public Criteria andLimgNotEqualTo(String value) {
            addCriterion("LIMG <>", value, "limg");
            return (Criteria) this;
        }

        public Criteria andLimgGreaterThan(String value) {
            addCriterion("LIMG >", value, "limg");
            return (Criteria) this;
        }

        public Criteria andLimgGreaterThanOrEqualTo(String value) {
            addCriterion("LIMG >=", value, "limg");
            return (Criteria) this;
        }

        public Criteria andLimgLessThan(String value) {
            addCriterion("LIMG <", value, "limg");
            return (Criteria) this;
        }

        public Criteria andLimgLessThanOrEqualTo(String value) {
            addCriterion("LIMG <=", value, "limg");
            return (Criteria) this;
        }

        public Criteria andLimgLike(String value) {
            addCriterion("LIMG like", value, "limg");
            return (Criteria) this;
        }

        public Criteria andLimgNotLike(String value) {
            addCriterion("LIMG not like", value, "limg");
            return (Criteria) this;
        }

        public Criteria andLimgIn(List<String> values) {
            addCriterion("LIMG in", values, "limg");
            return (Criteria) this;
        }

        public Criteria andLimgNotIn(List<String> values) {
            addCriterion("LIMG not in", values, "limg");
            return (Criteria) this;
        }

        public Criteria andLimgBetween(String value1, String value2) {
            addCriterion("LIMG between", value1, value2, "limg");
            return (Criteria) this;
        }

        public Criteria andLimgNotBetween(String value1, String value2) {
            addCriterion("LIMG not between", value1, value2, "limg");
            return (Criteria) this;
        }

        public Criteria andLpathIsNull() {
            addCriterion("LPATH is null");
            return (Criteria) this;
        }

        public Criteria andLpathIsNotNull() {
            addCriterion("LPATH is not null");
            return (Criteria) this;
        }

        public Criteria andLpathEqualTo(String value) {
            addCriterion("LPATH =", value, "lpath");
            return (Criteria) this;
        }

        public Criteria andLpathNotEqualTo(String value) {
            addCriterion("LPATH <>", value, "lpath");
            return (Criteria) this;
        }

        public Criteria andLpathGreaterThan(String value) {
            addCriterion("LPATH >", value, "lpath");
            return (Criteria) this;
        }

        public Criteria andLpathGreaterThanOrEqualTo(String value) {
            addCriterion("LPATH >=", value, "lpath");
            return (Criteria) this;
        }

        public Criteria andLpathLessThan(String value) {
            addCriterion("LPATH <", value, "lpath");
            return (Criteria) this;
        }

        public Criteria andLpathLessThanOrEqualTo(String value) {
            addCriterion("LPATH <=", value, "lpath");
            return (Criteria) this;
        }

        public Criteria andLpathLike(String value) {
            addCriterion("LPATH like", value, "lpath");
            return (Criteria) this;
        }

        public Criteria andLpathNotLike(String value) {
            addCriterion("LPATH not like", value, "lpath");
            return (Criteria) this;
        }

        public Criteria andLpathIn(List<String> values) {
            addCriterion("LPATH in", values, "lpath");
            return (Criteria) this;
        }

        public Criteria andLpathNotIn(List<String> values) {
            addCriterion("LPATH not in", values, "lpath");
            return (Criteria) this;
        }

        public Criteria andLpathBetween(String value1, String value2) {
            addCriterion("LPATH between", value1, value2, "lpath");
            return (Criteria) this;
        }

        public Criteria andLpathNotBetween(String value1, String value2) {
            addCriterion("LPATH not between", value1, value2, "lpath");
            return (Criteria) this;
        }

        public Criteria andMimgIsNull() {
            addCriterion("MIMG is null");
            return (Criteria) this;
        }

        public Criteria andMimgIsNotNull() {
            addCriterion("MIMG is not null");
            return (Criteria) this;
        }

        public Criteria andMimgEqualTo(String value) {
            addCriterion("MIMG =", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgNotEqualTo(String value) {
            addCriterion("MIMG <>", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgGreaterThan(String value) {
            addCriterion("MIMG >", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgGreaterThanOrEqualTo(String value) {
            addCriterion("MIMG >=", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgLessThan(String value) {
            addCriterion("MIMG <", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgLessThanOrEqualTo(String value) {
            addCriterion("MIMG <=", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgLike(String value) {
            addCriterion("MIMG like", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgNotLike(String value) {
            addCriterion("MIMG not like", value, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgIn(List<String> values) {
            addCriterion("MIMG in", values, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgNotIn(List<String> values) {
            addCriterion("MIMG not in", values, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgBetween(String value1, String value2) {
            addCriterion("MIMG between", value1, value2, "mimg");
            return (Criteria) this;
        }

        public Criteria andMimgNotBetween(String value1, String value2) {
            addCriterion("MIMG not between", value1, value2, "mimg");
            return (Criteria) this;
        }

        public Criteria andMpathIsNull() {
            addCriterion("MPATH is null");
            return (Criteria) this;
        }

        public Criteria andMpathIsNotNull() {
            addCriterion("MPATH is not null");
            return (Criteria) this;
        }

        public Criteria andMpathEqualTo(String value) {
            addCriterion("MPATH =", value, "mpath");
            return (Criteria) this;
        }

        public Criteria andMpathNotEqualTo(String value) {
            addCriterion("MPATH <>", value, "mpath");
            return (Criteria) this;
        }

        public Criteria andMpathGreaterThan(String value) {
            addCriterion("MPATH >", value, "mpath");
            return (Criteria) this;
        }

        public Criteria andMpathGreaterThanOrEqualTo(String value) {
            addCriterion("MPATH >=", value, "mpath");
            return (Criteria) this;
        }

        public Criteria andMpathLessThan(String value) {
            addCriterion("MPATH <", value, "mpath");
            return (Criteria) this;
        }

        public Criteria andMpathLessThanOrEqualTo(String value) {
            addCriterion("MPATH <=", value, "mpath");
            return (Criteria) this;
        }

        public Criteria andMpathLike(String value) {
            addCriterion("MPATH like", value, "mpath");
            return (Criteria) this;
        }

        public Criteria andMpathNotLike(String value) {
            addCriterion("MPATH not like", value, "mpath");
            return (Criteria) this;
        }

        public Criteria andMpathIn(List<String> values) {
            addCriterion("MPATH in", values, "mpath");
            return (Criteria) this;
        }

        public Criteria andMpathNotIn(List<String> values) {
            addCriterion("MPATH not in", values, "mpath");
            return (Criteria) this;
        }

        public Criteria andMpathBetween(String value1, String value2) {
            addCriterion("MPATH between", value1, value2, "mpath");
            return (Criteria) this;
        }

        public Criteria andMpathNotBetween(String value1, String value2) {
            addCriterion("MPATH not between", value1, value2, "mpath");
            return (Criteria) this;
        }

        public Criteria andSimgIsNull() {
            addCriterion("SIMG is null");
            return (Criteria) this;
        }

        public Criteria andSimgIsNotNull() {
            addCriterion("SIMG is not null");
            return (Criteria) this;
        }

        public Criteria andSimgEqualTo(String value) {
            addCriterion("SIMG =", value, "simg");
            return (Criteria) this;
        }

        public Criteria andSimgNotEqualTo(String value) {
            addCriterion("SIMG <>", value, "simg");
            return (Criteria) this;
        }

        public Criteria andSimgGreaterThan(String value) {
            addCriterion("SIMG >", value, "simg");
            return (Criteria) this;
        }

        public Criteria andSimgGreaterThanOrEqualTo(String value) {
            addCriterion("SIMG >=", value, "simg");
            return (Criteria) this;
        }

        public Criteria andSimgLessThan(String value) {
            addCriterion("SIMG <", value, "simg");
            return (Criteria) this;
        }

        public Criteria andSimgLessThanOrEqualTo(String value) {
            addCriterion("SIMG <=", value, "simg");
            return (Criteria) this;
        }

        public Criteria andSimgLike(String value) {
            addCriterion("SIMG like", value, "simg");
            return (Criteria) this;
        }

        public Criteria andSimgNotLike(String value) {
            addCriterion("SIMG not like", value, "simg");
            return (Criteria) this;
        }

        public Criteria andSimgIn(List<String> values) {
            addCriterion("SIMG in", values, "simg");
            return (Criteria) this;
        }

        public Criteria andSimgNotIn(List<String> values) {
            addCriterion("SIMG not in", values, "simg");
            return (Criteria) this;
        }

        public Criteria andSimgBetween(String value1, String value2) {
            addCriterion("SIMG between", value1, value2, "simg");
            return (Criteria) this;
        }

        public Criteria andSimgNotBetween(String value1, String value2) {
            addCriterion("SIMG not between", value1, value2, "simg");
            return (Criteria) this;
        }

        public Criteria andSpathIsNull() {
            addCriterion("SPATH is null");
            return (Criteria) this;
        }

        public Criteria andSpathIsNotNull() {
            addCriterion("SPATH is not null");
            return (Criteria) this;
        }

        public Criteria andSpathEqualTo(String value) {
            addCriterion("SPATH =", value, "spath");
            return (Criteria) this;
        }

        public Criteria andSpathNotEqualTo(String value) {
            addCriterion("SPATH <>", value, "spath");
            return (Criteria) this;
        }

        public Criteria andSpathGreaterThan(String value) {
            addCriterion("SPATH >", value, "spath");
            return (Criteria) this;
        }

        public Criteria andSpathGreaterThanOrEqualTo(String value) {
            addCriterion("SPATH >=", value, "spath");
            return (Criteria) this;
        }

        public Criteria andSpathLessThan(String value) {
            addCriterion("SPATH <", value, "spath");
            return (Criteria) this;
        }

        public Criteria andSpathLessThanOrEqualTo(String value) {
            addCriterion("SPATH <=", value, "spath");
            return (Criteria) this;
        }

        public Criteria andSpathLike(String value) {
            addCriterion("SPATH like", value, "spath");
            return (Criteria) this;
        }

        public Criteria andSpathNotLike(String value) {
            addCriterion("SPATH not like", value, "spath");
            return (Criteria) this;
        }

        public Criteria andSpathIn(List<String> values) {
            addCriterion("SPATH in", values, "spath");
            return (Criteria) this;
        }

        public Criteria andSpathNotIn(List<String> values) {
            addCriterion("SPATH not in", values, "spath");
            return (Criteria) this;
        }

        public Criteria andSpathBetween(String value1, String value2) {
            addCriterion("SPATH between", value1, value2, "spath");
            return (Criteria) this;
        }

        public Criteria andSpathNotBetween(String value1, String value2) {
            addCriterion("SPATH not between", value1, value2, "spath");
            return (Criteria) this;
        }

        public Criteria andDatelineIsNull() {
            addCriterion("DATELINE is null");
            return (Criteria) this;
        }

        public Criteria andDatelineIsNotNull() {
            addCriterion("DATELINE is not null");
            return (Criteria) this;
        }

        public Criteria andDatelineEqualTo(Date value) {
            addCriterion("DATELINE =", value, "dateline");
            return (Criteria) this;
        }

        public Criteria andDatelineNotEqualTo(Date value) {
            addCriterion("DATELINE <>", value, "dateline");
            return (Criteria) this;
        }

        public Criteria andDatelineGreaterThan(Date value) {
            addCriterion("DATELINE >", value, "dateline");
            return (Criteria) this;
        }

        public Criteria andDatelineGreaterThanOrEqualTo(Date value) {
            addCriterion("DATELINE >=", value, "dateline");
            return (Criteria) this;
        }

        public Criteria andDatelineLessThan(Date value) {
            addCriterion("DATELINE <", value, "dateline");
            return (Criteria) this;
        }

        public Criteria andDatelineLessThanOrEqualTo(Date value) {
            addCriterion("DATELINE <=", value, "dateline");
            return (Criteria) this;
        }

        public Criteria andDatelineIn(List<Date> values) {
            addCriterion("DATELINE in", values, "dateline");
            return (Criteria) this;
        }

        public Criteria andDatelineNotIn(List<Date> values) {
            addCriterion("DATELINE not in", values, "dateline");
            return (Criteria) this;
        }

        public Criteria andDatelineBetween(Date value1, Date value2) {
            addCriterion("DATELINE between", value1, value2, "dateline");
            return (Criteria) this;
        }

        public Criteria andDatelineNotBetween(Date value1, Date value2) {
            addCriterion("DATELINE not between", value1, value2, "dateline");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}